import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { poListComponent } from './poList-list/poList-list.component';
import { potempListComponent } from './poList-list/potempList-list.component';
import { AuthGuardService } from '@core/auth/auth-guard.service';
import {batchdetailViewEditComponent} from "./poList-list/edit/batch-detail.component";
import {shViewEditComponent} from "./poList-list/edit/sh-detail.component";
import {fhViewEditComponent} from "./poList-list/edit/fh-detail.component";
import {batchplandetailViewEditComponent} from "./poList-list/edit/batchplan-detail.component";

const routes: Routes = [
  {
    path: 'poList',
    children: [
      { path: '', component: poListComponent },
      { path: 'temp', component: potempListComponent },
      { path: 'batch', component: batchdetailViewEditComponent },
      { path: 'batchplan', component: batchplandetailViewEditComponent },

      { path: 'batch/:id', component: batchdetailViewEditComponent },
      { path: 'batchplan/:id/:no', component: batchplandetailViewEditComponent },

      { path: 'sh/:id/:no', component: shViewEditComponent }
,
      { path: 'fh/:id/:no', component: fhViewEditComponent }

    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class poListRoutingModule { }
